import axios from 'axios'

const ajax = axios.create({
    baseURL: 'http://rap2.taobao.org:38080/app/mock/259657'
})

ajax.interceptors.request.use((req) => {
    return req
})

ajax.interceptors.response.use((res) => {
    if (res.status >= 200 && res.status < 300) {
        return res.data
    }
})

export default ajax
